package mode.decoratorMode06;

public abstract  class FastFood {
    private float price;
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getPrice() {
        return price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    //这个接口是这个产品都有的特点，比如每个快餐我们都需要知道他的价格
    public abstract float cost(); //获取价格


}
